package com.zhoux.others;

/**
 * @author taoyi
 * @version 1.0
 * @date 2021/3/20 15:27
 */
public class A {
    public void start() {
        System.out.println("TestA");
    }
}
class B extends A {
    public void start() {
        System.out.println("TestB");
    }
    public static void main(String[] args) {
        ((A) new B()).start();
    }
}
